<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/views/common/taglibs.jsp" %>

<!DOCTYPE>
<html>
<head>
    <!-- 引入通用js、css文件(xiaogq) -->
    <meta name="decorator" content="bootstrap">
    <link rel="stylesheet" type="text/css" href="${ctx}/css/system/custom/entity/entity_list.css"/>
</head>
<body>
    <div class="menu">
        <span class="active">系统对象</span><span>自定义对象</span>
    </div>
    <div class="entity_div">
        <table id="entity_table1"
               data-striped="true"
               data-toggle="table"
               data-show-columns="false"
               data-cookie="false"
               data-pagination="false"
               data-search="false"
               data-url="${ctx}/EntityRecord/queryEntityLayoutList.do?systemEntity=1"
               data-side-pagination="server"
               data-checkbox-header="true"
               data-page-list="[10,20,30,10000]"
               class="table">
            <thead>
            <tr>
                ${columns}
            </tr>
            </thead>
        </table>
    </div>
    <div class="entity_div" style="display: none;">
        <table id="entity_table2"
               data-striped="true"
               data-toggle="table"
               data-show-columns="false"
               data-cookie="false"
               data-pagination="false"
               data-search="false"
               data-url="${ctx}/EntityRecord/queryEntityLayoutList.do?systemEntity=0"
               data-side-pagination="server"
               data-checkbox-header="true"
               data-page-list="[10,20,30,10000]"
               class="table">
            <thead>
            <tr>
                ${columns}
            </tr>
            </thead>
        </table>
    </div>
    <script>
        $(function(){
            $(".menu span").click(function(){
                var index=$(this).index();
                $(this).addClass("active").siblings().removeClass("active");
                $(".entity_div").eq(index).show().siblings(".entity_div").hide();
            });
        });
    </script>
    <!-- 引入出来表格列头操作按钮方法js(xiaogq) -->
    <script type="text/javascript" src="${ctx}/js/system/operation/show_colOperation.js"></script>
    <!-- 引入系统设置模块所有操作处理方法js(xiaogq) -->
    <script type="text/javascript" src="${ctx}/js/system/operation/sys_operation.js"></script>
</body>
</html>
